import Main from '@/layout/main.vue'

const routes = [
    {
        path: '/finance',
        name: 'finance',
        meta: { title: '财务管理' },
        redirect: '/finance/profile',
        component: Main,
        children: [
            {
                path: '/finance/profile',
                name: 'profile',
                meta: {
                    title: '财务概况',
                    parentPath: '/finance',
                    icon: 'icon_caiwu',
                    permission: ['view']
                },
                component: () => import('@/views/finance/profile.vue')
            },
			{
				path: '/finance/balance',
				name: 'finance_balance',
				meta: {
				    title: '财务结算',
				    parentPath: '/finance',
				    icon: 'icon_caiwu_tixian',
				    permission: ['view'],
				    keepAlive: true
				},
				component: () => import('@/views/finance/balance.vue')
			},
			{
				path: '/finance/detail',
				name: 'finance_detail',
				meta: {
				    title: '提现详情',
				    parentPath: '/finance',
					prevPath:'/finance/profile',
					hidden:true
				},
				component: () => import('@/views/finance/detail.vue')
			}
			
        ]
    }
]

export default routes
